﻿<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/meta.jsp"%>
<%@ include file="/common/content.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>友情链接信息管理</title>
<script>
$(document).ready(function(){

		$("#name").focus();
		$("#linksForm").validate({
			 rules: { 
				name: { 
        			required: true, 
        			maxlength:50,
        			remote: "orderlistAction!checkName.action?orgName=${authorities.name}&math="+Math.random()
    			},
    			displayName:
    			{
    				required: true, 
        			maxlength:50,
        			remote: "orderlistAction!checkDisplayName.action?orgName=${authorities.displayName}&math="+Math.random()
    			}
    			
			},
			messages: {
				name: {
					remote: "该权限名称已存在"
				},
				displayName:
				{
					remote: "该显示名称已存在"
				}
			},
			success: function(label) {
				label.html("&nbsp;").addClass("checked");
	        }	
		});
	});	
</script>	
	</head>
	<body>
 	    <div class="rhead">
			<div class="rpos">
				当前位置: 业务管理 - 套餐信息管理  - 编辑套餐信息管理
			</div>
			<div class="ropt"><input type="button" value="返回" onclick="history.back()"/></div>	
			<div class="clear"></div>
		</div>
		<form action="orderlistAction!update.action" method="post" id="linksForm"  method="post">
		<input type="hidden" name="authorities.id" value="${authorities.id}"/>
		<input type="hidden"  value="${_pageNo}" name="_pageNo"  /><!-- 用于提交表单后，返回编辑前的页面 -->
		<table  align="center" class="listTable3" width="90%">
			<tr>
				<td class="pn-flabel" width="100px">套餐名称</td>
				<td>
					<input type="text" name="name" value="${authorities.name}"  size="50"/>
				</td>
			</tr>
			<tr>
				<td class="pn-flabel" width="100px">套餐编号</td>
				<td>
					<input type="text" name="displayName" value="${authorities.displayName}"  size="50"/>
				</td>
			</tr>
			<tr>
				<td class="pn-flabel">套餐类型</td>
				<td>
				<select name="authorities.salesDirect">
							<option value="1">
								优惠充值
							</option>
							<option value="2" <c:if test="${authorities.salesDirect == 2}">selected</c:if>>
								直接充值
							</option>
						</select>
				</td>
			</tr>
			<tr>
				<td  class="pn-flabel">排序</td>
				<td><input type="text" name="authorities.orderAuth" value="${authorities.orderAuth}" size="50"/></td>
			</tr>
			<tr>
				<td colspan="2" align="center">
				<input type="submit" value=" 提 交 "/>
				</td>
			</tr>
	 	</table>
	</form>
	</body>
</html>

